//
//  STTabModel.swift
//  iPhone
//
//  Created by Toj on 11/17/23.
//

import Foundation
import HandyJSON

enum STTabType: Int, HandyJSONEnum {
    /// 0: 未知, 默认
    case unknown
    /// 1: 详情
    case detail
    /// 2: H5
    case h5
    /// 3: 聊天室
    case chatroom
    /// 4: 板块
    case widget
    /// 5: 投票
    case poll
    /// 6: 评论
    case comment
}

struct STTabModel: STJSONCodable {
    /// 类型
    var tabType: STTabType = .unknown
    /// title: 显示的文字.
    var tabTitle   = ""
    /// icon: 图标地址
    var tabIcon    = ""
    /// 默认选项
    var tabDefault = false
    /// tab具体内容
    var tabContent: STTabContentModel?
}
